package ltd.hxya.novel.book.feign;

import ltd.hxya.novel.common.bean.Result;
import ltd.hxya.novel.common.to.user.UserBookshelfTo;
import ltd.hxya.novel.common.vo.BookContentParam;
import ltd.hxya.novel.common.vo.UserReadHistoryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("novel-user")
public interface UserFeignService {

    @GetMapping("/user/readHistory/lastReadIndex/{bookId}")
    public Result<UserReadHistoryVo> listBook(@PathVariable("bookId") String bookId);

    @PostMapping("/user/readHistory/updateReadHistory")
    public Result updateReadHistory(@RequestBody BookContentParam bookContentParam);
}
